package cn.org.timespace.ons.service.base.impl;

import java.util.List;


import cn.org.timespace.ons.action.base.AppleServerModel;
import cn.org.timespace.ons.dao.base.AppleServerDao;
import cn.org.timespace.ons.service.base.AppleServerService;
import cn.org.timespace.ons.util.pager.Pager;
import cn.org.timespace.ons.vo.base.AppleServer;
import cn.org.timespace.ons.vo.base.Options;




public class AppleServerServiceImpl implements AppleServerService{

	private AppleServerDao appleServerDao;
	public AppleServerDao getAppleServerDao() {
		return appleServerDao;
	}

	public void setAppleServerDao(AppleServerDao appleServerDao) {
		this.appleServerDao = appleServerDao;
	}

	@Override
	public List<AppleServer> findByCondition(AppleServerModel model) {
		// TODO Auto-generated method stub
		return appleServerDao.findByCondition(model);
	}
	
	@Override
	public List<Object> findByCondition(AppleServerModel model, Pager p) {
		// TODO Auto-generated method stub
		return appleServerDao.findByCondition(model, p);
	}
	@Override
	public void delete(AppleServer persistentInstance) {
		// TODO Auto-generated method stub
		appleServerDao.delete(persistentInstance);
	}
	@Override
	public AppleServer findById(String id) {
		// TODO Auto-generated method stub
		return appleServerDao.findById(id);
	}
	@Override
	public void save(AppleServer transientInstance) {
		// TODO Auto-generated method stub
		appleServerDao.save(transientInstance);
	}
	@Override
	public void update(AppleServer instance) {
		// TODO Auto-generated method stub
		appleServerDao.update(instance);
	}
	public AppleServer findByCompCode(String compCode) {
		return appleServerDao.findByCompCode(compCode);
	}

	@Override
	public List<Object> findByCondition(Pager p) {
		// TODO Auto-generated method stub
		return appleServerDao.findByCondition(p);
	}
	
	public List<Options> findByCode(String code) {
		// TODO Auto-generated method stub
		return this.appleServerDao.findByCode(code);
	}



	@Override
	public AppleServer findByCondition(String IP, String port) {
		// TODO Auto-generated method stub
		return this.appleServerDao.findByCondition(IP, port);
	}

	@Override
	public List<Object> findAppByCondition(String theidname[] , Pager p) {
		// TODO Auto-generated method stub
		return this.appleServerDao.findAppByCondition(theidname, p);
	}

	@Override
	public boolean isExistByTypeName(String appleName, String userName) {
		return this.appleServerDao.isExistByTypeName(appleName, userName);
	}

	
}
